<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>区块链投票</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-8 col-sm-push-2">
            <h1 class="text-center">区块链投票</h1>
            <hr/>
            <br/>
            <div id="loader"><p class="test-center">Loading...</p></div>
            <div id="content" style="display: none;">
                <table>
                    <thead>
                    <tr>
                        <th scope="col">#</th>
                        <th scope="col">Name</th>
                        <th scope="col">Votes</th>
                    </tr>
                    </thead>
                    <tbody id="candidatesResults"></tbody>
                </table>
                <hr/> <!-- 投票 -->
                <form onsubmit="App.castVote();return false;">
                    <div class="form-group">
                        <label for="cadidatesSelect">选择你要投的名字：</label>
                        <select class="form-control" id="cadidatesSelect"> </select>
                    </div>
                    <button type="submit" class="btn btn-primary">投票</button>
                </form>
            </div>
            <hr/>
            <p id="accountAddress" class="test-center"></p></div>
    </div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/web3.min.js"></script>
<script src="js/truffle-contract.js"></script>
<script src="js/app.js"></script>
</body>
</html>
<style> .test-center {
    text-align: center;
}

table {
    width: 100%;
}

table tr {
    border-bottom: 2px solid #efefef;
    height: 40px;
}
</style>